# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
业务中移动系统串行调用
# 文件：credit_flow_msydloan.py
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''


# 节点1：35+5=40个字段  =15926         进件基础数据+黑名单+百行  BH_QUERY,BList
credit_node1 =  {
        "idcard":"220381199102110013",
        "idcard2nd": "43",                        # 身份证号前两位 (V3.9.4-20200311)
        "mobile":"15774412020",
        "name":"方春雨",
        "processNo": "CW20190911HB000009",
        "creditAge": "28",
        "creditIdCardPD": "734",                  # 规则引擎：身份证有效期到期日距今天数(非必填-》注意默认值-989)-20191016V2.3
        "creditUsrProvNo": "01",                  # 规则引擎：GLV017=100  值=='05'   用户归属省份usrProvNo-20190926
        "creditUsrJob": "DEFAULT",
        "creditSchooling": "004",
        "creditContactMblNoLast1H":"1",           # 规则引擎：CON001=100  5<=值  紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNoHistory": "1",         # 规则引擎：CON003=100  10<=值 紧急联系人电话历史出现次数
        "creditContactMblNo1Last1H": "1",         # 规则引擎：CON002=100  5<=值  第二个紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNo1History": "1",        # 规则引擎：CON004=100  10<=值 第二紧急联系人电话历史出现次数
        "creditTimeHour": "3",                    # 授信时间（时）-20191010
        "creditSocialIdentity": "001",
        "creditMaritalSta": "1",
        "creditContactRelation": "004",
        "creditBlkIdCardHitIdCard": "-989",       # 授信-客户身份证命中黑名单身份证
        "creditBlkBankMblNoHitMblNo": "0",        # 授信-目标客户银行卡绑定手机号命中黑名单手机号（bankMblNo）-2019123# V3.5
        "creditBlkDirectContactHitMblNo": "-989", # 授信-客户直系联系人命中黑名单手机号（contactMblNo）
        "creditBlkBankCardHitBankCard": "-989",   # 授信-客户银行卡号码命中黑名单银行卡号码
        "creditBlkNo2ContactHitMblNo": "-989",    # 授信-目标客户第二联系人命中黑名单手机号（contactMblNo1）-2019123# V3.5
        "creditBlkMblNoHitMblNo": "-989",         # 授信-客户手机号命中黑名单手机号（mblNo）
        "baiHangD14TotalQueryNumber":"0",             # 8
        "baiHangD180TotalQueryNumber":"0",            # 11
        "baiHangD30TotalQueryNumber":"0",             # 9
        "baiHangD7TotalQueryNumber":"0",              # 7
        "baiHangD90TotalQueryNumber":"0",             # 10
        "baiHangNonRevMaxOverdueStatus":"N",          # 2
        "baiHangNonRevOverdueCount":"0",              # 3
        "baiHangNonRevRemainingOverdueLoanCount":"0", # 1
        "baiHangRevMaxOverdueStatus":"N",             # 5
        "baiHangRevOverdueCount":"0",                 # 6
        "baiHangRevRemainingOverdueAccountCount":"0", # 4
        # 增加,暂时不用
        "creditAddressCityCode": "DEFAULT",           # 规则引擎：SameCity=Y creditCompanyAddressCityCode==creditAddressCityCode
        "creditBankMblNo": "15286375448",
        "creditCompanyAddressCityCode": "DEFAULT",
        "creditCusSex": "1",                          # 授信非必填字段-cusSex，取身份证的性别
        "creditInCome": "004",
    }

# 节点2：40+29=41个字段  =15921          同盾  TD_C
credit_node2 =  {
        "tongDunEmailNumberCount":"0",
        "tongDunFraudPoints":"20",                     # 规则引擎：CSV002=100   值 >= 80  同盾欺诈分
        "tongDunFuzzyList":"N",                        # 规则引擎：NLI0010  Y=20   身份证_姓名命中法院结案模糊名单
        "tongDunIdNumberCount":"0",
        "tongDunIdNumberHighFocusList":"N",            # 规则引擎：NLI0021  Y=40 tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   身份证命中高风险
        "tongDunJusticeRepresentList":"N",             # 规则引擎：NLI0018  Y=60   手机号命中欠款公司法人代表名单
        "tongDunLoseFuzzyList":"N",                    # 规则引擎：NLI0005  Y=100
        "tongDunLoseList":"N",                         # 规则引擎：NLI0009  Y=100
        "tongDunLowFocusList":"N",                     # 规则引擎：NLI0019  Y=5    申请人信息命中低风险关注名单
        "tongDunMiddleFocusList":"N",                  # 规则引擎：NLI0020  Y=0    申请人信息命中中风险关注名单
        "tongDunOneMonthPlatfromNumber":"0",           # 规则引擎：MHU004=5 3<=值<=6; MHU005=10 7<=值<=11; MHU006=100  12<=值  1个月内申请人借贷申请平台数
        "tongDunOverdueFuzzyList":"N",                 # 规则引擎：NLI0004  Y=60    身份证_姓名命中信贷逾期模糊名单
        "tongDunOverdueList":"N",                      # 规则引擎：NLI0003  Y=100
        "tongDunOwingHistory":"N",                     # 规则引擎：NLI0014  Y=40    身份证对应人存在助学贷款欠费历史
        "tongDunOwingTaxesList":"N",                   # 规则引擎：NLI0012  Y=100
        "tongDunPerformFuzzyList":"N",                 # 规则引擎：NLI0006  Y=100
        "tongDunPerformList":"N",                      # 规则引擎：NLI0002  Y=100
        "tongDunPhoneHighFocusList":"N",               # 规则引擎：NLI0021  Y=40   tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   手机号命中高风险
        "tongDunPhoneNumberCount":"0",
        "tongDunPhoneOverdueList":"N",                 # 规则引擎：NLI0016  Y=100
        "tongDunPhoneRepaymentList":"N",               # 规则引擎：NLI0017  Y=60   手机号命中信贷逾期后还款名单
        "tongDunRepaymentList":"N",                    # 规则引擎：NLI0013  Y=40   身份证命中信贷逾期后还款名单
        "tongDunRepresentList":"N",                    # 规则引擎：NLI0011  Y=100
        "tongDunSettleLawsuitList":"N",                # 规则引擎：NLI0015  Y=100
        "tongDunSpuriousLibrary":"N",                  # 规则引擎：NLI0007  Y=100
        "tongDunThreeMonthPlatfromNumber":"0",         # 规则引擎：MHU007=5 5<=值<=11; MHU008=10 12<=值<=23; MHU009=100 24<=值  3个月内申请人借贷申请平台数
        "tongDunTrumpetLibrary":"N",                   # 规则引擎：NLI0008  Y=100
        "tongDunWeekPlatfromNumber":"0",               # 规则引擎：MHU001=5较多 3=值; MHU002=10过多 4<=值<=5; MHU003=100极多 6<=值  7天内申请借贷申请平台数
        "tongDunWantedList": "N",                      # 规则引擎：NLI0001  Y=100
       }

# 节点3：41+1=42个字段 =15919 （方案通过跳转到节点6，拒绝跳转到节点4）      个人信息：天创运营商三要素 TIANC_OPE3V_CTEL
credit_node3 =  {
        "creditOperator3Verify": "Y",                 # 规则引擎：天创运营商三要素验证(mblNo、usrIdName、usrIdCard)是否一致-20191016V2.3  Y/N
        #"baiHangTel3Verify": "0"                      # 规则引擎：百行三要素 (mblNo、usrIdName、usrIdCard--》MBASU001.response.isIdnameMatch)是否一致-20200304V3.9.3 0-通过 20200522V3.9.8去除
    }

# 节点4：42+1=43个字段 =15917 （节点3拒绝跳转到节点4）       银行信息：天创运营商三要素验证
credit_node4 =  {
        "tianChuangOperatorBankTel3Verify": "Y"         # 天创银行信息运营商三要素验证(bankMblNo、bankCardName、usrIdCard)是否一致-20200103V3.7
    }

# 节点5：43+2=45个字段 =15914 （节点3拒绝跳转到节点4,再到节点5）        电话帮注册手机号
credit_node5 =  {
         "dianHuaBangTelPeriod":"-989",                 # 电话邦手机在网时长202
        # "pengYuanBankPhoneStatus":"1",                # bankMblNo鹏元银行卡预留手机在网状态：1-正常在用,2-停机  已去除
    }

# 节点6：15911 （节点3通过直接跳转到节点6》42+7=49个字段）、（经过节点4,5》45+4+3=52）  百融注册手机号3+1  电话帮手机号2+1
credit_node6 =  {
        #"baiRongTelOperation": "3",                # 百融手机运营商名称 1,2,3,4,-1
        #"baiRongTelPeriod": "3",                   # 第三方取值：TelPeriod['data']['value']-20200521V3.9.8
        #"baiRongTelStatus": "1",                   # 规则引擎：MDV018=100 值=2或者3或者4     第三方取值：TelStatus['data']['value']-20200521V3.9.8
        "dianHuaBangBankTelStatus": "1",            # 银行预留手机号在网状态：result_216.status=0，取result_216.data.rescode  1-正常、5-欠费、7-长时间关机
        "dianHuaBangTelStatus": "1",                # 注册手机号在网状态：result_216.status=0，取result_216.data.rescode
        #"pengYuanPhoneStatus": "1",                   # mblNo鹏元手机在网状态：1-正常在用,2-停机-20200521V3.9.8
        #"pengYuanMobileOperator": "2",                # mblNo鹏元手机号运营商：1-电信；2-移动：3-联通-20200521V3.9.8
        #"pengYuanMobileTimeLength": "1",              # mblNo鹏元手机在网时长：电信；联通；移动-20200521V3.9.8
        # 节点10使用
        #"baiRongTelConsume": "4",                     # 百融 取值：TelConsume['telConsume']  -20200521V3.9.8
        #"pengYuanMobileFeeLevel": "1",                # mblNo鹏元手机消费档次-20200521V3.9.8
    }

# 节点7：52+1=81个字段 =15909    46+29=75       腾讯云银行卡四要素
credit_node7 =  {
        "tencentCloudBankCard4Verify": "Y"  # 腾讯云银行卡四要素核验-20191213V3.4  授信阶段姓名-usrIdName、身份证-usrIdCard、手机号-bankMblNo、银行卡-bankCardNo

}

# 节点8：73+4=77个字段 =15905    75+4=79       腾讯云人脸核身接口
credit_node8 =  {
        "idcard":"220381199102110013",
        "mobile":"15774412020",
        "name":"方春雨",
        "processNo": "CW20190911HB000009",
        "creditAge": "28",
        "creditIdCardPD": "734",                  # 规则引擎：身份证有效期到期日距今天数(非必填-》注意默认值-989)-20191016V2.3
        "creditUsrProvNo": "01",                  # 规则引擎：GLV017=100  值=='05'   用户归属省份usrProvNo-20190926
        "creditUsrJob": "DEFAULT",
        "creditSchooling": "004",
        "creditContactMblNoLast1H":"1",           # 规则引擎：CON001=100  5<=值  紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNoHistory": "1",         # 规则引擎：CON003=100  10<=值 紧急联系人电话历史出现次数
        "creditContactMblNo1Last1H": "1",         # 规则引擎：CON002=100  5<=值  第二个紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNo1History": "1",        # 规则引擎：CON004=100  10<=值 第二紧急联系人电话历史出现次数
        "creditTimeHour": "3",                    # 授信时间（时）-20191010
        "creditSocialIdentity": "001",
        "creditMaritalSta": "1",
        "creditContactRelation": "004",
        "creditBlkIdCardHitIdCard": "-989",       # 授信-客户身份证命中黑名单身份证
        "creditBlkBankMblNoHitMblNo": "0",        # 授信-目标客户银行卡绑定手机号命中黑名单手机号（bankMblNo）-2019123# V3.5
        "creditBlkDirectContactHitMblNo": "-989", # 授信-客户直系联系人命中黑名单手机号（contactMblNo）
        "creditBlkBankCardHitBankCard": "-989",   # 授信-客户银行卡号码命中黑名单银行卡号码
        "creditBlkNo2ContactHitMblNo": "-989",    # 授信-目标客户第二联系人命中黑名单手机号（contactMblNo1）-2019123# V3.5
        "creditBlkMblNoHitMblNo": "-989",         # 授信-客户手机号命中黑名单手机号（mblNo）
        "baiHangD14TotalQueryNumber":"0",             # 8
        "baiHangD180TotalQueryNumber":"0",            # 11
        "baiHangD30TotalQueryNumber":"0",             # 9
        "baiHangD7TotalQueryNumber":"0",              # 7
        "baiHangD90TotalQueryNumber":"0",             # 10
        "baiHangNonRevMaxOverdueStatus":"N",          # 2
        "baiHangNonRevOverdueCount":"0",              # 3
        "baiHangNonRevRemainingOverdueLoanCount":"0", # 1
        "baiHangRevMaxOverdueStatus":"N",             # 5
        "baiHangRevOverdueCount":"0",                 # 6
        "baiHangRevRemainingOverdueAccountCount":"0", # 4
        "creditAddressCityCode": "DEFAULT",           # 规则引擎：SameCity=Y creditCompanyAddressCityCode==creditAddressCityCode
        "creditBankMblNo": "15286375448",
        "creditCompanyAddressCityCode": "DEFAULT",
        "creditCusSex": "1",                          # 授信非必填字段-cusSex，取身份证的性别
        "creditInCome": "004",
        "tencentCloudBankCard4Verify":"Y",            # 腾讯云银行卡四要素核验-20191213V3.4
        "creditOperator3Verify": "Y",                 # 规则引擎：天创运营商三要素验证(mblNo、usrIdName、usrIdCard)是否一致-20191016V2.3
        "baiRongTelPeriod": "-989",                   # 第三方取值：TelPeriod['data']['value']
        "baiRongTelStatus": "-989",                   # 规则引擎：MDV018=100 值=2或者3或者4     第三方取值：TelStatus['data']['value']
        "baiRongTelConsume": "4",                     # 百融 取值：TelConsume['telConsume']
        "baiRongBankTelStatus": "1",                  # 百融 取值：TelStatus['data']['value']
        "tongDunEmailNumberCount":"0",
        "tongDunFraudPoints":"20",                     # 规则引擎：CSV002=100   值 >= 80  同盾欺诈分
        "tongDunFuzzyList":"N",                        # 规则引擎：NLI0010  Y=20   身份证_姓名命中法院结案模糊名单
        "tongDunIdNumberCount":"0",
        "tongDunIdNumberHighFocusList":"N",            # 规则引擎：NLI0021  Y=40 tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   身份证命中高风险
        "tongDunJusticeRepresentList":"N",             # 规则引擎：NLI0018  Y=60   手机号命中欠款公司法人代表名单
        "tongDunLoseFuzzyList":"N",                    # 规则引擎：NLI0005  Y=100
        "tongDunLoseList":"N",                         # 规则引擎：NLI0009  Y=100
        "tongDunLowFocusList":"N",                     # 规则引擎：NLI0019  Y=5    申请人信息命中低风险关注名单
        "tongDunMiddleFocusList":"N",                  # 规则引擎：NLI0020  Y=0    申请人信息命中中风险关注名单
        "tongDunOneMonthPlatfromNumber":"0",           # 规则引擎：MHU004=5 3<=值<=6; MHU005=10 7<=值<=11; MHU006=100  12<=值  1个月内申请人借贷申请平台数
        "tongDunOverdueFuzzyList":"N",                 # 规则引擎：NLI0004  Y=60    身份证_姓名命中信贷逾期模糊名单
        "tongDunOverdueList":"N",                      # 规则引擎：NLI0003  Y=100
        "tongDunOwingHistory":"N",                     # 规则引擎：NLI0014  Y=40    身份证对应人存在助学贷款欠费历史
        "tongDunOwingTaxesList":"N",                   # 规则引擎：NLI0012  Y=100
        "tongDunPerformFuzzyList":"N",                 # 规则引擎：NLI0006  Y=100
        "tongDunPerformList":"N",                      # 规则引擎：NLI0002  Y=100
        "tongDunPhoneHighFocusList":"N",               # 规则引擎：NLI0021  Y=40   tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   手机号命中高风险
        "tongDunPhoneNumberCount":"0",
        "tongDunPhoneOverdueList":"N",                 # 规则引擎：NLI0016  Y=100
        "tongDunPhoneRepaymentList":"N",               # 规则引擎：NLI0017  Y=60   手机号命中信贷逾期后还款名单
        "tongDunRepaymentList":"N",                    # 规则引擎：NLI0013  Y=40   身份证命中信贷逾期后还款名单
        "tongDunRepresentList":"N",                    # 规则引擎：NLI0011  Y=100
        "tongDunSettleLawsuitList":"N",                # 规则引擎：NLI0015  Y=100
        "tongDunSpuriousLibrary":"N",                  # 规则引擎：NLI0007  Y=100
        "tongDunThreeMonthPlatfromNumber":"0",         # 规则引擎：MHU007=5 5<=值<=11; MHU008=10 12<=值<=23; MHU009=100 24<=值  3个月内申请人借贷申请平台数
        "tongDunTrumpetLibrary":"N",                   # 规则引擎：NLI0008  Y=100
        "tongDunWeekPlatfromNumber":"0",               # 规则引擎：MHU001=5较多 3=值; MHU002=10过多 4<=值<=5; MHU003=100极多 6<=值  7天内申请借贷申请平台数
        "tongDunWantedList": "N",                      # 规则引擎：NLI0001  Y=100
        # 节点8增加
        "tencentIdCardPicVerifyResult": "成功",         # 腾讯身份证人脸认证-20191028V2.6   删除：20200403V3.9.7
        "tencentIdCardPicVerifyScore": "97.14",        # 腾讯身份证人脸认证-20191028V2.6    删除：20200403V3.9.7
        "tencentLivenessPicVerifyConfidence": "98.1",  # 腾讯活体人脸认证-20191025V2.5
        "tencentLivenessPicVerifyResult": "成功",       # 腾讯活体人脸认证-20191025V2.5
        "facePlusCompareConfidence": "-989",            # Face++人脸比对（活体照、身份证头像照）置信度 20200403V3.9.7
        # 经过节点4、5
        "tianChuangOperatorBankTel3Verify": "Y",       # 天创银行信息运营商三要素验证(bankMblNo、bankCardName、usrIdCard)是否一致-20200103V3.7
    }

# 节点9：77+14=91个字段 =15895    79+14=93          腾讯天御分 +4(20200311)
credit_node9 =  {
        "idcard":"220381199102110013",
        "mobile":"15774412020",
        "name":"方春雨",
        "processNo": "CW20190911HB000009",
        "creditAge": "28",
        "creditIdCardPD": "734",                  # 规则引擎：身份证有效期到期日距今天数(非必填-》注意默认值-989)-20191016V2.3
        "creditUsrProvNo": "01",                  # 规则引擎：GLV017=100  值=='05'   用户归属省份usrProvNo-20190926
        "creditUsrJob": "DEFAULT",
        "creditSchooling": "004",
        "creditContactMblNoLast1H":"1",           # 规则引擎：CON001=100  5<=值  紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNoHistory": "1",         # 规则引擎：CON003=100  10<=值 紧急联系人电话历史出现次数
        "creditContactMblNo1Last1H": "1",         # 规则引擎：CON002=100  5<=值  第二个紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNo1History": "1",        # 规则引擎：CON004=100  10<=值 第二紧急联系人电话历史出现次数
        "creditTimeHour": "3",                    # 授信时间（时）-20191010
        "creditSocialIdentity": "001",
        "creditMaritalSta": "1",
        "creditContactRelation": "004",
        "creditBlkIdCardHitIdCard": "-989",       # 授信-客户身份证命中黑名单身份证
        "creditBlkBankMblNoHitMblNo": "0",        # 授信-目标客户银行卡绑定手机号命中黑名单手机号（bankMblNo）-2019123# V3.5
        "creditBlkDirectContactHitMblNo": "-989", # 授信-客户直系联系人命中黑名单手机号（contactMblNo）
        "creditBlkBankCardHitBankCard": "-989",   # 授信-客户银行卡号码命中黑名单银行卡号码
        "creditBlkNo2ContactHitMblNo": "-989",    # 授信-目标客户第二联系人命中黑名单手机号（contactMblNo1）-2019123# V3.5
        "creditBlkMblNoHitMblNo": "-989",         # 授信-客户手机号命中黑名单手机号（mblNo）
        "baiHangD14TotalQueryNumber":"0",             # 8
        "baiHangD180TotalQueryNumber":"0",            # 11
        "baiHangD30TotalQueryNumber":"0",             # 9
        "baiHangD7TotalQueryNumber":"0",              # 7
        "baiHangD90TotalQueryNumber":"0",             # 10
        "baiHangNonRevMaxOverdueStatus":"N",          # 2
        "baiHangNonRevOverdueCount":"0",              # 3
        "baiHangNonRevRemainingOverdueLoanCount":"0", # 1
        "baiHangRevMaxOverdueStatus":"N",             # 5
        "baiHangRevOverdueCount":"0",                 # 6
        "baiHangRevRemainingOverdueAccountCount":"0", # 4
        "creditAddressCityCode": "DEFAULT",           # 规则引擎：SameCity=Y creditCompanyAddressCityCode==creditAddressCityCode
        "creditBankMblNo": "15286375448",
        "creditCompanyAddressCityCode": "DEFAULT",
        "creditCusSex": "1",                          # 授信非必填字段-cusSex，取身份证的性别
        "creditInCome": "004",
        "tencentCloudBankCard4Verify":"Y",            # 腾讯云银行卡四要素核验-20191213V3.4
        "creditOperator3Verify": "Y",                 # 规则引擎：天创运营商三要素验证(mblNo、usrIdName、usrIdCard)是否一致-20191016V2.3
        "baiRongTelPeriod": "-989",                   # 第三方取值：TelPeriod['data']['value']
        "baiRongTelStatus": "-989",                   # 规则引擎：MDV018=100 值=2或者3或者4     第三方取值：TelStatus['data']['value']
        "baiRongTelConsume": "4",                     # 百融 取值：TelConsume['telConsume']
        "baiRongBankTelStatus": "1",                  # 百融 取值：TelStatus['data']['value']
        "tongDunEmailNumberCount":"0",
        "tongDunFraudPoints":"20",                     # 规则引擎：CSV002=100   值 >= 80  同盾欺诈分
        "tongDunFuzzyList":"N",                        # 规则引擎：NLI0010  Y=20   身份证_姓名命中法院结案模糊名单
        "tongDunIdNumberCount":"0",
        "tongDunIdNumberHighFocusList":"N",            # 规则引擎：NLI0021  Y=40 tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   身份证命中高风险
        "tongDunJusticeRepresentList":"N",             # 规则引擎：NLI0018  Y=60   手机号命中欠款公司法人代表名单
        "tongDunLoseFuzzyList":"N",                    # 规则引擎：NLI0005  Y=100
        "tongDunLoseList":"N",                         # 规则引擎：NLI0009  Y=100
        "tongDunLowFocusList":"N",                     # 规则引擎：NLI0019  Y=5    申请人信息命中低风险关注名单
        "tongDunMiddleFocusList":"N",                  # 规则引擎：NLI0020  Y=0    申请人信息命中中风险关注名单
        "tongDunOneMonthPlatfromNumber":"0",           # 规则引擎：MHU004=5 3<=值<=6; MHU005=10 7<=值<=11; MHU006=100  12<=值  1个月内申请人借贷申请平台数
        "tongDunOverdueFuzzyList":"N",                 # 规则引擎：NLI0004  Y=60    身份证_姓名命中信贷逾期模糊名单
        "tongDunOverdueList":"N",                      # 规则引擎：NLI0003  Y=100
        "tongDunOwingHistory":"N",                     # 规则引擎：NLI0014  Y=40    身份证对应人存在助学贷款欠费历史
        "tongDunOwingTaxesList":"N",                   # 规则引擎：NLI0012  Y=100
        "tongDunPerformFuzzyList":"N",                 # 规则引擎：NLI0006  Y=100
        "tongDunPerformList":"N",                      # 规则引擎：NLI0002  Y=100
        "tongDunPhoneHighFocusList":"N",               # 规则引擎：NLI0021  Y=40   tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   手机号命中高风险
        "tongDunPhoneNumberCount":"0",
        "tongDunPhoneOverdueList":"N",                 # 规则引擎：NLI0016  Y=100
        "tongDunPhoneRepaymentList":"N",               # 规则引擎：NLI0017  Y=60   手机号命中信贷逾期后还款名单
        "tongDunRepaymentList":"N",                    # 规则引擎：NLI0013  Y=40   身份证命中信贷逾期后还款名单
        "tongDunRepresentList":"N",                    # 规则引擎：NLI0011  Y=100
        "tongDunSettleLawsuitList":"N",                # 规则引擎：NLI0015  Y=100
        "tongDunSpuriousLibrary":"N",                  # 规则引擎：NLI0007  Y=100
        "tongDunThreeMonthPlatfromNumber":"0",         # 规则引擎：MHU007=5 5<=值<=11; MHU008=10 12<=值<=23; MHU009=100 24<=值  3个月内申请人借贷申请平台数
        "tongDunTrumpetLibrary":"N",                   # 规则引擎：NLI0008  Y=100
        "tongDunWeekPlatfromNumber":"0",               # 规则引擎：MHU001=5较多 3=值; MHU002=10过多 4<=值<=5; MHU003=100极多 6<=值  7天内申请借贷申请平台数
        "tongDunWantedList": "N",                      # 规则引擎：NLI0001  Y=100
        "tencentLivenessPicVerifyConfidence": "98.1",  # 腾讯活体人脸认证-20191025V2.5
        "tencentLivenessPicVerifyResult": "成功",       # 腾讯活体人脸认证-20191025V2.5
        # 节点9增加 14个
        "tencentRiskCode1101": "N",                    # 规则引擎：NLI022   Y=100
        "tencentRiskCode1102": "N",                    # 规则引擎：NLI023   Y=100
        "tencentRiskCode1103": "N",                    # 规则引擎：NLI024   Y=100         疑似资料仿冒行为
        "tencentRiskCode1104": "N",                    # 规则引擎：NLI025   Y=40          疑似营销活动欺诈
        "tencentRiskCode1105": "N",                    # 规则引擎：NLI026   Y=10          疑似身份信息不符
        "tencentRiskCode1106": "N",
        "tencentRiskCode1107": "N",
        "tencentRiskCode1108": "N",                    # 规则引擎：NLI029
        "tencentRiskCode1201": "N",                    # 规则引擎：NLI030   Y=40          疑似风险设备环境
        "tencentRiskCode3101": "N",                    # 规则引擎：NLI031   Y=40          疑似异常支付行为
        "tencentRiskCode3103": "N",                    # 疑似线上养号小号
        "tencentRiskCode3104": "N",
        "tencentRiskCode3202": "N",                    # 规则引擎：NLI034   Y=80          疑似账号被盗风险
        "tencentRiskScore": "-989",                    # 规则引擎：CSV001=100   值 >= 90
        "tencentRiskScoreConsumerInstallment":"55",    # 天御分（消费分期）(V3.9.4-20200311)
        "tencentRiskCode2101":"N",                     # 天御风险-疑似资金紧张人群(V3.9.4-20200311)
        "tencentRiskCode3102": "N",                    # 天御风险-疑似线上支付白户(V3.9.4-20200311)
        "tencentRiskCode3201": "N",                    # 天御风险-疑似存在失联风险(V3.9.4-20200311)
        # 经过节点4、5
        "tianChuangOperatorBankTel3Verify": "Y",       # 天创银行信息运营商三要素验证(bankMblNo、bankCardName、usrIdCard)是否一致-20200103V3.7
    }

# 节点10：91个字段 =15884    93            紧急联系人天创二要素接口
credit_node10 =  {
        "idcard":"220381199102110013",
        "mobile":"15774412020",
        "name":"方春雨",
        "processNo": "CW20190911HB000009",
        "creditAge": "28",
        "creditIdCardPD": "734",                  # 规则引擎：身份证有效期到期日距今天数(非必填-》注意默认值-989)-20191016V2.3
        "creditUsrProvNo": "01",                  # 规则引擎：GLV017=100  值=='05'   用户归属省份usrProvNo-20190926
        "creditUsrJob": "DEFAULT",
        "creditSchooling": "004",
        "creditContactMblNoLast1H":"1",           # 规则引擎：CON001=100  5<=值  紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNoHistory": "1",         # 规则引擎：CON003=100  10<=值 紧急联系人电话历史出现次数
        "creditContactMblNo1Last1H": "1",         # 规则引擎：CON002=100  5<=值  第二个紧急联系人contactMblNo电话近1小时出现次数-20190927
        "creditContactMblNo1History": "1",        # 规则引擎：CON004=100  10<=值 第二紧急联系人电话历史出现次数
        "creditTimeHour": "3",                    # 授信时间（时）-20191010
        "creditSocialIdentity": "001",
        "creditMaritalSta": "1",
        "creditContactRelation": "004",
        "creditBlkIdCardHitIdCard": "-989",       # 授信-客户身份证命中黑名单身份证
        "creditBlkBankMblNoHitMblNo": "0",        # 授信-目标客户银行卡绑定手机号命中黑名单手机号（bankMblNo）-2019123# V3.5
        "creditBlkDirectContactHitMblNo": "-989", # 授信-客户直系联系人命中黑名单手机号（contactMblNo）
        "creditBlkBankCardHitBankCard": "-989",   # 授信-客户银行卡号码命中黑名单银行卡号码
        "creditBlkNo2ContactHitMblNo": "-989",    # 授信-目标客户第二联系人命中黑名单手机号（contactMblNo1）-2019123# V3.5
        "creditBlkMblNoHitMblNo": "-989",         # 授信-客户手机号命中黑名单手机号（mblNo）
        "baiHangD14TotalQueryNumber":"0",             # 8
        "baiHangD180TotalQueryNumber":"0",            # 11
        "baiHangD30TotalQueryNumber":"0",             # 9
        "baiHangD7TotalQueryNumber":"0",              # 7
        "baiHangD90TotalQueryNumber":"0",             # 10
        "baiHangNonRevMaxOverdueStatus":"N",          # 2
        "baiHangNonRevOverdueCount":"0",              # 3
        "baiHangNonRevRemainingOverdueLoanCount":"0", # 1
        "baiHangRevMaxOverdueStatus":"N",             # 5
        "baiHangRevOverdueCount":"0",                 # 6
        "baiHangRevRemainingOverdueAccountCount":"0", # 4
        # 节点1获取的数据 3
        "creditAddressCityCode": "DEFAULT",           # 规则引擎：SameCity=Y creditCompanyAddressCityCode==creditAddressCityCode
        "creditCompanyAddressCityCode": "DEFAULT",    # SameCity
        "creditCusSex": "1",                          # 授信非必填字段-cusSex，取身份证的性别
        "creditInCome": "004",
        # 不需要
        "creditBankMblNo": "15286375448",
        "tencentCloudBankCard4Verify":"Y",            # 腾讯云银行卡四要素核验-20191213V3.4
        "creditOperator3Verify": "Y",                 # 规则引擎：天创运营商三要素验证(mblNo、usrIdName、usrIdCard)是否一致-20191016V2.3
        "baiRongTelPeriod": "-989",                   # 第三方取值：TelPeriod['data']['value']
        "baiRongTelStatus": "-989",                   # 规则引擎：MDV018=100 值=2或者3或者4     第三方取值：TelStatus['data']['value']
        "baiRongTelConsume": "4",                     # 百融 取值：TelConsume['telConsume']
        "baiRongBankTelStatus": "1",                  # 百融 取值：TelStatus['data']['value']
        "tongDunEmailNumberCount":"0",
        "tongDunFraudPoints":"20",                     # 规则引擎：CSV002=100   值 >= 80  同盾欺诈分
        "tongDunFuzzyList":"N",                        # 规则引擎：NLI0010  Y=20   身份证_姓名命中法院结案模糊名单
        "tongDunIdNumberCount":"0",
        "tongDunIdNumberHighFocusList":"N",            # 规则引擎：NLI0021  Y=40 tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   身份证命中高风险
        "tongDunJusticeRepresentList":"N",             # 规则引擎：NLI0018  Y=60   手机号命中欠款公司法人代表名单
        "tongDunLoseFuzzyList":"N",                    # 规则引擎：NLI0005  Y=100
        "tongDunLoseList":"N",                         # 规则引擎：NLI0009  Y=100
        "tongDunLowFocusList":"N",                     # 规则引擎：NLI0019  Y=5    申请人信息命中低风险关注名单
        "tongDunMiddleFocusList":"N",                  # 规则引擎：NLI0020  Y=0    申请人信息命中中风险关注名单
        "tongDunOneMonthPlatfromNumber":"0",           # 规则引擎：MHU004=5 3<=值<=6; MHU005=10 7<=值<=11; MHU006=100  12<=值  1个月内申请人借贷申请平台数
        "tongDunOverdueFuzzyList":"N",                 # 规则引擎：NLI0004  Y=60    身份证_姓名命中信贷逾期模糊名单
        "tongDunOverdueList":"N",                      # 规则引擎：NLI0003  Y=100
        "tongDunOwingHistory":"N",                     # 规则引擎：NLI0014  Y=40    身份证对应人存在助学贷款欠费历史
        "tongDunOwingTaxesList":"N",                   # 规则引擎：NLI0012  Y=100
        "tongDunPerformFuzzyList":"N",                 # 规则引擎：NLI0006  Y=100
        "tongDunPerformList":"N",                      # 规则引擎：NLI0002  Y=100
        "tongDunPhoneHighFocusList":"N",               # 规则引擎：NLI0021  Y=40   tongDunIdNumberHighFocusList+tongDunPhoneHighFocusList都为Y   手机号命中高风险
        "tongDunPhoneNumberCount":"0",
        "tongDunPhoneOverdueList":"N",                 # 规则引擎：NLI0016  Y=100
        "tongDunPhoneRepaymentList":"N",               # 规则引擎：NLI0017  Y=60   手机号命中信贷逾期后还款名单
        "tongDunRepaymentList":"N",                    # 规则引擎：NLI0013  Y=40   身份证命中信贷逾期后还款名单
        "tongDunRepresentList":"N",                    # 规则引擎：NLI0011  Y=100
        "tongDunSettleLawsuitList":"N",                # 规则引擎：NLI0015  Y=100
        "tongDunSpuriousLibrary":"N",                  # 规则引擎：NLI0007  Y=100
        "tongDunThreeMonthPlatfromNumber":"0",         # 规则引擎：MHU007=5 5<=值<=11; MHU008=10 12<=值<=23; MHU009=100 24<=值  3个月内申请人借贷申请平台数
        "tongDunTrumpetLibrary":"N",                   # 规则引擎：NLI0008  Y=100
        "tongDunWeekPlatfromNumber":"0",               # 规则引擎：MHU001=5较多 3=值; MHU002=10过多 4<=值<=5; MHU003=100极多 6<=值  7天内申请借贷申请平台数
        "tongDunWantedList": "N",                      # 规则引擎：NLI0001  Y=100
        "tencentLivenessPicVerifyConfidence": "98.1",  # 腾讯活体人脸认证-20191025V2.5
        "tencentLivenessPicVerifyResult": "成功",       # 腾讯活体人脸认证-20191025V2.5
        "tencentRiskCode1101": "N",                    # 规则引擎：NLI022   Y=100
        "tencentRiskCode1102": "N",                    # 规则引擎：NLI023   Y=100
        "tencentRiskCode1103": "N",                    # 规则引擎：NLI024   Y=100         疑似资料仿冒行为
        "tencentRiskCode1104": "N",                    # 规则引擎：NLI025   Y=40          疑似营销活动欺诈
        "tencentRiskCode1105": "N",                    # 规则引擎：NLI026   Y=10          疑似身份信息不符
        "tencentRiskCode1106": "N",
        "tencentRiskCode1107": "N",
        "tencentRiskCode1108": "N",                    # 规则引擎：NLI029
        "tencentRiskCode1201": "N",                    # 规则引擎：NLI030   Y=40          疑似风险设备环境
        "tencentRiskCode3101": "N",                    # 规则引擎：NLI031   Y=40          疑似异常支付行为
        "tencentRiskCode3103": "N",
        "tencentRiskCode3104": "N",
        "tencentRiskCode3202": "N",                    # 规则引擎：NLI034   Y=80          疑似账号被盗风险
        "tencentRiskScore": "-989",                    # 规则引擎：CSV001=100   值 >= 90
        # 经过节点4、5
        "tianChuangOperatorBankTel3Verify": "Y",       # 天创银行信息运营商三要素验证(bankMblNo、bankCardName、usrIdCard)是否一致-20200103V3.7
        "dianHuaBangTelConsume": "12",                 # 消费档次：result_204.status=0，取result_204.data.rescode   -20200720V3.9.14
        "dianHuaBangTelPeriod": "-989",                # 在网时长：result_202.status=0，取result_216.data.rescode   -20200720V3.9.14
    }

# 业务系统传入借款信息到决策引擎
loan_rule = {
    #"baiRongTelConsume":"4",                # 手机消费档次：20200403V3.9.7（creditUsrIdCardV2值去ms_thirdpart_log取最新一条数据） 下架（20200804-V3.1.15）
    "dianHuaBangTelConsume": "-989",         # 消费档次：result_204(ms_thirdpart_log where id_card='430321198702061217' and type='PhoneStateApi' and request like '%204%';)
    "creditLimit":"2000.00",
    "creditMblNoV2":"15160517620",
    "creditUsrIdCardV2":"350681199408035242",
    "creditUsrProvNo": "17",                # 20200109V3.8
    "idcard":"350681199408035242",
    "loanActBrwHbUsrNo":"111",
    "loanActBrwIdNo":"350681199408035242",  # 规则引擎：ABR1002 creditUsrIdCardV2 != loanActBrwIdNo ABR1002=100-->ABR=100 or 0
    "loanActBrwMblNo":"15160517620",        # 规则引擎：ABR003 creditMblNoV2!=loanActBrwMblNo ABR003=100-->ABR=50 or 0
    "loanAmt":"1000.00",                    # 规则引擎：overfulfil    loanAmt>creditLimit  overfulfil=200-->ABR=100 or 0
    "loanAppId":"HB",
    "loanApplyIp":"DEFAULT",
    "loanApplyModelCode":"DEFAULT",
    "loanDepId": "001",                    # 规则引擎：
    "loanDepNm": "营业厅名称",              # 规则引擎：
    "loanDepProvNo": "18",                 # 20200109V3.8
    "loanHbUsrNo":"99350681199408035242",
    "loanMblNo":"15160517620",
    "loanOperator3Verify": "N",            # 规则引擎：天创运营商三号要素运营商三要素验证是否一致-20191016V2.4（actBrwMblNo、actBrwIdNo、usrIdName）
    "loanOprId":"002",
    "loanPkgAmt":"1000.00",                # 套餐金额：20200403V3.9.7
    "loanTimeHour":"15",                   # 规则引擎：ABR001       0<=loanTimeHour<=6  ABR001=100-->ABR=100  or 0
    "mobile":"15160517620",
    "name":"周加凤",
    "processNo":"LW20190920HB000002"
}

